<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>寇新峰的demo8-3</title>
</head>
<style>
    * {
        margin: 0px;
        border: 0px;
        padding: 0px;
    }
    #a1 {
        width: 960px;
        height: 40px;
        margin: 0 auto;
        position: relative;
        background-color: #55a8ea;
    }
    .a1-1 {
        width: 100px;
        height: 40px;
        float: left;
        color: white;
        text-align: center;
        font: 14px/40px '微软雅黑';
        list-style-type: none;
    }
    #a1 ul li:hover {
        background-color: #00619f;
    }
    /* 图片位置 */
    .a1-2 img {
        position: absolute;
        top: -10px;
        left: 432px;
    }
</style>
<body>
    <br>
    <br>
    <div id="a1">
        <ul>
            <li class="a1-1">首页</li>
            <li class="a1-1">网站建设</li>
            <li class="a1-1">程序开发</li>
            <li class="a1-1">网络营销</li>
            <li class="a1-1">企业</li>
            <li class="a1-1">案例展示</li>
            <li class="a1-1">联系我们</li>
        </ul>
        <div class="a1-2">
            <img src="./寇新峰的图片库/new.png" alt="new">
        </div>
    </div>
</body>
</html>